<?php
namespace Admin\Model;
use Think\Model\ViewModel;
class ArticleViewModel extends ViewModel {
    //视图模型
    protected $viewFields = array(
         
                'Article'=>array('ar_id','ar_tittle','ar_video','ar_status','user_id','arc_id','arco_id','art_id','ar_click_num','ar_content','ar_order','ar_createtime','ar_updatetime','ar_createip','ar_updateip','ar_plate','ar_abstract','ar_thumbnail','ar_top','ar_recommend','ar_score','ar_commit_num','ar_isfee','ar_label','ar_enclosure','ar_keywords','ar_from','ar_username','ar_isbanner','ar_begintime','ar_endtime','_type'=>'left'),
          
           
                'ArticleColumn'=>array('arco_id','arco_name','arco_status','arco_createtime','arco_updatetime','arco_order','_on'=>'Article.arco_id=ArticleColumn.arco_id','_type'=>'left'),      
           
                'ArticleCategory'=>array('arc_id','arc_name','arc_createtime','arc_updatetime','arc_status','arc_order','arco_id','_on'=>'Article.arc_id=ArticleCategory.arc_id','_type'=>'left'),

        
           
                'User'=>array('user_id','role_id','user_name','user_realname','user_password','user_mobile','user_email','user_head','user_register_ip','user_login_time','user_login_ip','user_status','user_createtime','user_updatetime','user_clientid','_on'=>'Article.user_id=User.user_id','_type'=>'left'),
        
           
    );
    
}